package br.com.sovi.gwt.server.json.entity;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import br.com.sovi.gwt.client.entity.rastreamento.Rastreavel;

@XmlRootElement(name = "dispositivo")
@XmlAccessorType(XmlAccessType.FIELD)
public class DispositivoVO {

	private String nome;
	
	private String serial;
	
	public DispositivoVO() {
	}

	public DispositivoVO(String nome, String serial) {
		super();
		this.nome = nome;
		this.serial = serial;
	}

	public DispositivoVO(Rastreavel rastreavel) {
		this(rastreavel.getNome(), rastreavel.getSerial());
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}
	
}
